package com.kitty.action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts2.ServletActionContext;

import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionInvocation;
import com.opensymphony.xwork2.Result;

public class LoginResult implements Result {

	/**
	 * 
	 */
	private static final long serialVersionUID = 7987547798205905309L;

	 
	public void execute(ActionInvocation arg0) throws Exception {
		HttpServletRequest request = ServletActionContext.getRequest() ;
		HttpServletResponse respone = ServletActionContext.getResponse();
		//request.getRequestDispatcher("").forward(request, ServletActionContext.getResponse());
		
		 System.out.println("loginResult...");
		 
		 respone.sendRedirect("dd.html");
		
	}
 

}
